package com.qfedu.edu.seckill.storageservice.service;

import com.qfedu.edu.seckill.po.StockStorage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaobobo
 * @since 2025-01-13
 */
public interface StockStorageService extends IService<StockStorage> {
    /**
     * 添加库存信息
     * @param classId
     * @param quantity
     */
    int addStockStorage(String classId, Integer quantity);

    /**
     * 减库存的逻辑编写
     * @param reduceStockJson
     */
    void reduce(String reduceStockJson);
}
